/*************************************************************************
	> File Name: clock_settime.c
	> Author: Angel Criss
	> Blog: blog.abbycin.tk 
	> Created Time: Sat 05 Jul 2014 02:54:55 PM CST
 ************************************************************************/

#include"head.h"

int main(int argc,char *argv[])
{
    struct timespec tp;
    
    tp.tv_sec=0; // must give a number to tv_sec and any number can work
    tp.tv_nsec=0; // this can ignore

    if(clock_settime(CLOCK_REALTIME,&tp)==-1) // CLOCK_REALTIME set the time to Thu Jan 1 07:00:06 LONT 1970 (while run as root)
    {
        perror("clock_settime:");
        _exit(errno);
    }
}
